package com.kuangstudy.controller.collect;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author zhangfushuai
 * @description 跳转到收藏页面
 * @since 2022/4/19 13:13
 **/
@Controller
public class CollectController {

    @GetMapping( "/collect")
    public ModelAndView collectIndex() {
        // 3: 定义模型视图
        ModelAndView modelAndView = new ModelAndView();
        // 2: 指定跳转的页面
        modelAndView.setViewName("/collect/collect");
        return modelAndView;
    }
}
